Fix some docs
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 15 Jun 2005 04:20:11 +0000 (04:20 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 15 Jun 2005 04:20:11 +0000 (04:20 +0000)
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtkwindow.c

index 40994db64dd43d8e79d9bea4c6f3453582e899cd..1e9a8dde1d0b04cff49e653f9589f783616a1816 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-14  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_parse_geometry):
+       Fix up the example.  (#307699, Michal Suchanek)
+
 2005-06-14  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkcalendar.c: Update num_marked_dates as we
index 40994db64dd43d8e79d9bea4c6f3453582e899cd..1e9a8dde1d0b04cff49e653f9589f783616a1816 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-14  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_parse_geometry):
+       Fix up the example.  (#307699, Michal Suchanek)
+
 2005-06-14  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkcalendar.c: Update num_marked_dates as we
index 40994db64dd43d8e79d9bea4c6f3453582e899cd..1e9a8dde1d0b04cff49e653f9589f783616a1816 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-14  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_parse_geometry):
+       Fix up the example.  (#307699, Michal Suchanek)
+
 2005-06-14  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkcalendar.c: Update num_marked_dates as we
index 26de8e359368b41621b2e3aabc787ac49a3749ee..d0e73148c8c8ac90b0288d54892de32fed11663c 100644 (file)
@@ -7044,11 +7044,21 @@ gtk_XParseGeometry (const char   *string,
  * on the window.
  * 
  * <informalexample><programlisting>
+ * #include &lt;gtk/gtk.h&gt;
+ * 
+ * static void
+ * fill_with_content (GtkWidget *vbox)
+ * {
+ *   /<!-- -->* fill with content... *<!-- -->/
+ * }
+ * 
  * int
  * main (int argc, char *argv[])
  * {
- *   GtkWidget *window, vbox;
- *   GdkGeometry size_hints;
+ *   GtkWidget *window, *vbox;
+ *   GdkGeometry size_hints = {
+ *     100, 50, 0, 0, 100, 50, 10, 10, 0.0, 0.0, GDK_GRAVITY_NORTH_WEST  
+ *   };
  *   
  *   gtk_init (&amp;argc, &amp;argv);
  *   
@@ -7059,10 +7069,6 @@ gtk_XParseGeometry (const char   *string,
  *   fill_with_content (vbox);
  *   gtk_widget_show_all (vbox);
  *   
- *   size_hints = {
- *     100, 50, 0, 0, 100, 50, 10, 10, 0.0, 0.0, GDK_GRAVITY_NORTH_WEST  
- *   };
- *   
  *   gtk_window_set_geometry_hints (GTK_WINDOW (window),
  *                                 window,
  *                                 &amp;size_hints,
@@ -7076,10 +7082,10 @@ gtk_XParseGeometry (const char   *string,
  *         fprintf (stderr, "Failed to parse '&percnt;s'\n", argv[1]);
  *     }
  *    
- *    gtk_widget_show_all (window);
- *    gtk_main ();
+ *   gtk_widget_show_all (window);
+ *   gtk_main ();
  *    
- *    return 0;
+ *   return 0;
  * }
  * </programlisting></informalexample>
  *